﻿<sdk:ChildWindow	
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"	x:Class="Lottery.Client.SL.Controls.SchemeInfoWindow"
	Style="{StaticResource ChildWindowStyle_ConfirmWindow}" Width="480" Height="370" Title="方案信息">

    <Grid x:Name="LayoutRoot">
        <Grid Name="gridMain" Visibility="Collapsed">
            <Grid.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="Foreground" Value="Gray" />
                    <Setter Property="HorizontalAlignment" Value="Right" />
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="Margin" Value="2"/>
                </Style>
                <Style x:Key="styleTextBlockInfo" TargetType="TextBlock">
                    <Setter Property="Foreground" Value="Gray" />
                    <Setter Property="HorizontalAlignment" Value="Left" />
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="Margin" Value="2"/>
                </Style>
                <Style x:Key="styleTextBlockNumber" TargetType="TextBlock">
                    <Setter Property="Foreground" Value="Gray" />
                    <Setter Property="HorizontalAlignment" Value="Left" />
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="Margin" Value="2"/>
                </Style>
            </Grid.Resources>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80" />
                <ColumnDefinition />
                <ColumnDefinition Width="80" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="26" />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition Height="150" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource styleTextBlockInfo}" FontSize="13" Foreground="Yellow" Text="{Binding Title}"/>
            <TextBlock Grid.Row="1" Text="方案发起人:" />
            <TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding UserName}" />
            <TextBlock Grid.Row="1" Grid.Column="2" Text="方案号:" />
            <TextBlock Grid.Row="1" Grid.Column="3" Style="{StaticResource styleTextBlockInfo}" Text="{Binding IDStr}" />
            <TextBlock Grid.Row="2" Text="购买时间:" />
            <TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding DealTimeStr}"/>
            <TextBlock Grid.Row="2" Grid.Column="2" Text="倍数:" />
            <TextBlock Grid.Row="2" Grid.Column="3" Style="{StaticResource styleTextBlockInfo}" Text="{Binding Multiple,StringFormat=\{0:F2\}}" />
            <TextBlock Grid.Row="3" Text="方案金额:" />
            <TextBlock Grid.Row="3" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding SchemeMoney,StringFormat=\{0:F2\}}" />
            <TextBlock Grid.Row="3" Grid.Column="2" Text="奖金/赔率:" />
            <StackPanel Grid.Row="3" Grid.Column="3" Orientation="Horizontal" HorizontalAlignment="Left">
                <TextBlock Style="{StaticResource styleTextBlockNumber}" Foreground="Red" Text="{Binding ScaleStr,StringFormat=\{0:F2\}}" />
                <TextBlock Style="{StaticResource styleTextBlockNumber}" Text="/" />
                <TextBlock Style="{StaticResource styleTextBlockNumber}" Foreground="Green" Text="{Binding BackPctStr}" />
            </StackPanel>
            <TextBlock Grid.Row="4" Text="开奖号码:" />
            <TextBlock Grid.Row="4" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding WinNumber}" Foreground="White" />
            <TextBlock Grid.Row="4" Grid.Column="2" Text="方案状态:" />
            <TextBlock Grid.Row="4" Grid.Column="3" Style="{StaticResource styleTextBlockInfo}" Text="{Binding StatusString}" Foreground="Red" />
            <TextBlock Grid.Row="5" Text="方案奖金:" />
            <TextBlock Grid.Row="5" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding WinMoneyStr}" Foreground="White" />
            <TextBlock Grid.Row="5" Grid.Column="2" Text="中奖信息:" />
            <TextBlock Grid.Row="5" Grid.Column="3" Style="{StaticResource styleTextBlockInfo}" Text="{Binding WinIntroduction}" Foreground="Red" />
            <TextBlock Grid.Row="6" Text="返点:" />
            <TextBlock Grid.Row="6" Grid.Column="1" Style="{StaticResource styleTextBlockInfo}" Text="{Binding ScoringStr}" />
            <TextBlock Grid.Row="6" Grid.Column="2" Text="盈亏:" />
            <TextBlock Grid.Row="6" Grid.Column="3" Style="{StaticResource styleTextBlockInfo}" Text="{Binding Profit}" Foreground="White" />
            <TextBlock Grid.Row="7" Text="方案内容:" />
            <TextBox Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding LotteryNumber}" VerticalScrollBarVisibility="Visible" IsReadOnly="True" TextWrapping="Wrap" />
        </Grid>
        <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2">
            <StackPanel Margin="5">
                <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                <ProgressBar x:Name="progressBarLoading" Height="10" Width="200" IsIndeterminate="True"/>
            </StackPanel>
        </Border>
    </Grid>
</sdk:ChildWindow>